-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
network: add ipv6 only global option #11831
base: master
Are you sure you want to change the base?
Conversation
Welcome @borislitv! |
Hi @borislitv. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, the initiative looks great. I left a few comments on possible improvements to improve readability though.
roles/kubernetes/control-plane/templates/kubeadm-config.v1beta3.yaml.j2
Outdated
Show resolved
Hide resolved
roles/container-engine/cri-dockerd/templates/cri-dockerd.service.j2
Outdated
Show resolved
Hide resolved
/label ci/extended |
@MrFreezeex: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/label ci-extended |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
/lgtm
/release-note-edit
Add support for ipv6 only cluster via "enable_ipv6only_stack_networks"
/retest |
/release-note-edit
|
@MrFreezeex: /release-note-edit must be used with a release note block. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/release-note-edit
|
Sorry, I had to add a small fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, thanks for the additional fix!
/lgtm
/assign @floryut |
Is there a way to test this in CI (the ipv6 only option, I mean) ? Given the various places it touches, in order for the option to keep working, it should be tested. Otherwise unrelated changes have a high chance of silently breaking something. |
good idea, I'll try to make a test like ubuntu20-calico-dual-stack |
@@ -548,9 +577,9 @@ ssl_ca_dirs: |- | |||
|
|||
# Vars for pointing to kubernetes api endpoints | |||
kube_apiserver_count: "{{ groups['kube_control_plane'] | length }}" | |||
kube_apiserver_address: "{{ ip | default(hostvars[inventory_hostname]['fallback_ip']) }}" | |||
kube_apiserver_address: "{{ vars['ip' + default_net_mode] | default(hostvars[inventory_hostname]['fallback_ip' + default_net_mode]) }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ansible/ansible#15753 (comment)
vars is not supported by ansible, it's internal. You may want to use ansible.builtin.vars
lookup
{% if enable_dual_stack_networks %} | ||
{% if enable_ipv6only_stack_networks %} | ||
"assign_ipv6": "true" | ||
{% elif enable_dual_stack_networks %} | ||
"assign_ipv6": "true", | ||
{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix the spacing here since you're doing it on the associated if ?
"Network": "{{ kube_pods_subnet }}", | ||
"EnableIPv4": true, | ||
{% if enable_dual_stack_networks %} | ||
{% endif %} | ||
{% if enable_dual_stack_networks or enable_ipv6only_stack_networks %} | ||
"EnableIPv6": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, since you're modifying the template take the opportunity to fix the spacing.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: borislitv, MrFreezeex The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Support ipv6 only clusters
Which issue(s) this PR fixes:
Fixes #5649
Special notes for your reviewer:
Does this PR introduce a user-facing change?: